<template>
	<view class="deal">
		<view class="title">
			<view class="calendar" @click="show = true">
				<image src="../../static/calendar.png" mode=""></image>
			</view>
			<u-picker v-model="show" mode="time" :params="params" @confirm="confirm"></u-picker>
		</view>
		<view class="no">
			<image src="../../static/img/no.png" mode=""></image>
			<view class="xiaoxi">
				暂无记录~
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "deal",
		data() {
			return {
				current: 0,
				show: false,
				params: {
					year: true,
					month: true,
					day: false,
					hour: false,
					minute: false,
					second: false
				},
				date: '2021年7月',
			};
		},
		methods: {
			confirm(val) {
				// console.log(val);
				this.date = val.year + '年' + val.month + '月'
			},
		}
	}
</script>

<style scoped>
	.title {
		background: rgb(238, 238, 238);
		width: 100%;
		height: 90rpx;
		display: flex;
		flex-direction: row;
		justify-content: flex-end;
		padding: 18rpx;
		padding-top: 28rpx;
	}

	.calendar image {
		width: 40rpx;
		height: 40rpx;
	}
	.no{
		display: flex;
		flex-direction: column;
		align-content: center;
		align-items: center;
		padding-top: 50%;
	}
	.no image{
		width: 220rpx;
		height: 200rpx;
	}
	.no view{
		color: rgb(153,153,153);
		padding-top: 30rpx;
	}
</style>
